All Questions
Tagged with iosobject-oriented
10 questions
1vote
1answer
105views
Initializing more than one instance object at a time in init method
I have a RadioStation class file and a view controller where I create two station objects based on this class, one for FM and one for AM. I created both of these ...
3votes
1answer
84views
Handle HTTP and BLE requests
Im implementing and designing a workflow that performs both HTTP and BLE requests. Im having trouble figuring out the best approach to design a service to handle both types of requests, and manage ...
1vote
0answers
3kviews
Swift/iOS component for label with clickable text buttons
So I'm creating a component based on UILabel, which I'm calling RichLabel. The main goal is to add support for clickable links (...
1vote
1answer
2kviews
Swift/iOS: Subclassing UILabel and setting properties
I'm writing this subclass to add an icon to a UILabel. It works, but I'm wondering if this is the best/cleanest way to do it. Do you see any improvements? Should maybe ...
2votes
1answer
208views
Extension vs Class For ViewModel
What the advantages & disadvantages to each of these approaches pertaining to creating file that takes care of the view configuration to reduce a controller's file size. Main Purposes Are: Memory ...
3votes
1answer
196views
Swift Attempt To Reduce Massive View Controller
In an effort to reduce the size of a View Controller class I am wondering if this structure is an acceptable, safe way to modify the UI on a Controller Class. The only thing that I see "wrong" with ...
3votes
0answers
173views
Adding swipe support to multiple classes
I have implemented swipe functionality using UIPanGestureRecognizer in a project. What I have done is added PanGesture to ...
5votes
1answer
111views
Simple plotting abstract base class and example subclass
I came across a CocoaControl ZFPlot and wanted to extend here. I ended up writing a base class (ZFPlot shown below) as well as several extensions (ZFLine, ZFScatter, ZFBar, none shown here for brevity)...
1vote
1answer
1kviews
Globally accessible helper class [closed]
I would like to get opinion if I am doing this right. I am creating a helper class that is globally accessible to my whole project. I want it to be easily called like ...
3votes
1answer
524views
Classes for background layer and parallax effect
I have two classes DigBackground and DigParallaxBackgroundLayer (a parallax background is a image consisting of several images ...